package diertian;

import java.util.Scanner;

public class lianxi4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入三个数");
        int num1,num2,num3,max,min,mid;
        num1=scanner.nextInt();
        num2= scanner.nextInt();
        num3=scanner.nextInt();
        max=0;
        if(num1<=num2 && num2<=num3 && num1<=num3) {
            System.out.println("num1 = " + num1);
            System.out.println("num2 = " + num2);
            System.out.println("num3 = " + num3);
        }
        if(num1<=num2 && num1<=num3 && num3<=num2){
            System.out.println("num1 = " + num1);
            System.out.println("num2 = " + num3);
            System.out.println("num3 = " + num2);
        }
        if(num3<=num2 && num3<=num1 && num1<=num2){
            System.out.println("num1 = " + num3);
            System.out.println("num2 = " + num1);
            System.out.println("num3 = " + num2);
        }
        if(num3<=num2 && num2<=num1 && num3<=num1){
            System.out.println("num1 = " + num3);
            System.out.println("num2 = " + num2);
            System.out.println("num3 = " + num1);
        }
        if(num2<=num3 && num3<=num1 && num2<=num1){
            System.out.println("num1 = " + num2);
            System.out.println("num2 = " + num3);
            System.out.println("num3 = " + num1);
        }
        if(num2<=num1 && num2<=num3 && num1<=num3){
            System.out.println("num1 = " + num2);
            System.out.println("num2 = " + num1);
            System.out.println("num3 = " + num3);
        }
    }
}
